package org.watchrecords.annotations;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

import javax.validation.Constraint;

@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = UniqueNamedValidator.class)
public @interface UniqueNamed {
    String message() default "An object with this name already exists";
    String namedQuery() default "checkUniqueName";
}
